Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore D

Total Complexity 168
Dependencies 11
Dependents 8
Total lines 1,872
Lines of code 857
Logical lines of code 330
Comment lines 592
Methods 71
Properties 7

Methods 71

Method Rating Maintainability Complexity Lines of code
query()
A
46 10 41
update()
A
50 9 25
persist_order_to_db()
A
48 8 32
get_db_rows_for_order()
A
45 7 46
get_db_row_from_order()
A
51 8 26
untrash_order()
A
44 6 51
set_order_props_from_data()
S
55 7 19
get_database_schema()
S
41 2 88
backfill_post_record()
S
53 6 24
release_held_coupons()
S
54 6 23
delete()
S
57 4 18
set_coupon_held_keys()
S
66 5 8
trash_order()
S
52 3 27
update_post_meta()
S
61 4 11
get_internal_meta_keys()
S
44 1 55
get_order_data_for_ids()
S
57 3 17
read_multiple()
S
57 3 16
read()
S
60 3 13
persist_save()
S
61 3 12
delete_order_data_from_custom_order_tables()
S
62 3 12
get_total_refunded()
S
57 2 18
get_coupon_held_keys_for_users()
S
68 3 7
generate_select_clause_for_props()
S
66 3 7
get_order_data_for_id()
S
74 3 4
get_coupon_held_keys()
S
68 3 7
join_address_table_order_query()
S
59 2 14
get_order_type()
S
61 2 14
persist_updates()
S
63 2 11
get_all_order_column_mappings()
S
63 2 11
get_order_table_select_statement()
S
56 1 18
get_stock_reduced()
S
74 2 4
get_unpaid_orders()
S
58 1 15
set_stock_reduced()
S
74 2 4
create()
S
68 2 7
get_order_id_by_order_key()
S
60 1 13
get_order_item_type()
S
82 1 3
read_meta()
S
80 1 3
delete_meta()
S
79 1 3
add_meta()
S
79 1 3
update_meta()
S
79 1 3
generate_select_and_join_clauses()
S
66 1 8
join_operational_data_table_to_order_query()
S
67 1 9
init()
S
76 1 4
join_shipping_address_table_to_order_query()
S
79 1 3
get_recorded_coupon_usage_counts()
S
79 1 3
get_addresses_table_name()
S
76 1 4
get_operational_data_table_name()
S
76 1 4
get_meta_table_name()
S
76 1 4
get_all_table_names()
S
69 1 8
get_op_table_alias()
S
82 1 3
get_address_table_alias()
S
80 1 3
get_post_data_store_for_backfill()
S
80 1 3
get_download_permissions_granted()
S
79 1 3
set_download_permissions_granted()
S
79 1 3
get_recorded_sales()
S
79 1 3
set_recorded_sales()
S
79 1 3
set_recorded_coupon_usage_counts()
S
79 1 3
join_billing_address_table_to_order_query()
S
79 1 3
get_email_sent()
S
79 1 3
set_email_sent()
S
79 1 3
get_new_order_email_sent()
S
80 1 3
set_new_order_email_sent()
S
79 1 3
get_order_stock_reduced()
S
80 1 3
set_order_stock_reduced()
S
79 1 3
get_total_tax_refunded()
S
82 1 3
get_total_shipping_refunded()
S
82 1 3
get_order_count()
S
71 1 5
get_orders()
S
75 1 4
search_orders()
S
73 1 4
get_orders_table_name()
S
76 1 4
get_internal_data_store_keys()
S
68 1 9